<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!--视口参数设置-->
    <meta name="viewport" content="width=device-width, user-scalable=no,
    initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>乐淘项目-移动端-分类页</title>
    <!--专门用来开发移动端==》类似bs库-->
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <!--字体图标-->
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/category.css">
</head>
<body>
<!--全部内容-->
<div class="lt-layout">

    <!--头部-->
    <div class="lt-header">

        <a href="index.html" class="home"><i class="mui-icon mui-icon-home"></i></a>
        <p>乐淘云购</p>
        <a href="search.html" class="home"><i class="mui-icon mui-icon-search"></i></a>

    </div>

    <!--主体-->
    <div class="lt-main">

        <!--左边-->
        <div class="cate-aside">

            <!-- 区域滚动 -->
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <ul>
                        <!--定义为了下面生成模板-->
                        <li class="current"><a href="javascript:;">小个子管</a></li>
                        <li><a href="javascript:;">小个子管</a></li>
                    </ul>
                </div>
            </div>

        </div>

        <!--右边-->
        <div class="cate-content">

            <!--定义为了下面生成模板-->
            <a href="javascript:;">
                <img src="./images/brand1.png" alt="">
                <p>耐克</p>
            </a>

        </div>


    </div>

    <!--底部-->
    <div class="lt-footer">

        <ul>
            <li>
                <a href="index.html">
                    <i class="fa fa-home"></i>
                    <p>首页</p>
                </a>
            </li>
            <li class="current">
                <a href="category.html">
                    <i class="fa fa-align-justify"></i>
                    <p>分类</p>
                </a>
            </li>
            <li>
                <a href="./cart.html" class="logout-1">
                    <i class="fa fa-cart-plus"></i>
                    <p>购物车</p>
                </a>
            </li>
            <li>
                <a href="./user.html" class="logout-2">
                    <i class="fa fa-user"></i>
                    <p>用户中心</p>
                </a>
            </li>
        </ul>

    </div>

</div>

<!--创建模板 ==》二级分类模板-->
<script type="text/html" id="tmp1">
    {{ each rows v i }}
        <a href="javascript:;">
            <img src="{{ v.brandLogo }}" alt="">
            <p>{{ v.brandName }}</p>
        </a>
    {{ /each }}
</script>

<!--创建模板 ==》一级分类模板-->
<script type="text/html" id="tmp">
    {{ each rows v i }}
        <li class="{{ i == 0?'current':'' }}"><a href="javascript:;" data-id="{{ v.id }}">{{ v.categoryName }}</a></li>
    {{ /each }}
</script>
<!--专门用来开发移动端==》类似jq库-->
<script src="./lib/zepto/zepto.min.js"></script>
<!--专门用来开发移动端==》类似bs库-->
<script src="./lib/mui/js/mui.js"></script>
<script src="./lib/artTemplate/template-web.js"></script>
<script src="./js/common.js"></script>
<script src="./js/category.js"></script>
</body>
</html>